9/*
 * 本地存储
 * */

/*设置本地存储*/
export function setLocalStorage(name, item) {
  localStorage.setItem(name, JSON.stringify(item));
}

/*
 * 获取本地存储
 * */
export function getLocalStorge(name) {
  return JSON.parse(localStorage.getItem(name));
}

/*
 * 删除本地存储
 * */
export function removeLocalStorge(name) {
  localStorage.removeItem(name);
}
